//
//  main.m
//  Demo0002
//
//  Created by zTercel on 12-12-25.
//  Copyright (c) 2012年 zTercel. All rights reserved.
//

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    @autoreleasepool {
        int     numInt      = -100;
        float   numFloat    = 10.232;
        double  numDouble   = 0.223232323;
        long    numLong     = 10000000231;
        short   numShort    = -121212;
        unsigned numUnsigned= 10000;
        char    charStr     = 'Z';
        const char* strStr  = "zTercel.yi";
        BOOL    byteBool    = YES;
        
        NSLog(@"numInt = %-10d         sizeof(int) = %ld",          numInt,         sizeof(numInt));
        NSLog(@"numFloat = %-10f       sizeof(float) = %lu",        numFloat,       sizeof(numFloat));
        NSLog(@"numDouble = %-10f      sizeof(double) = %lu",       numDouble,      sizeof(numDouble));
        NSLog(@"numLong = %-10ld       sizeof(long) = %ld",         numLong,        sizeof(numLong));
        NSLog(@"numShort = %-10d       sizeof(short) = %ld",        numShort,       sizeof(numShort));
        NSLog(@"numUnsigned = %-10d    sizeof(unsigned) = %ld",     numUnsigned,    sizeof(numUnsigned));
        NSLog(@"charStr = %-10c        sizeof(char) = %ld",         charStr,        sizeof(charStr));
        NSLog(@"string = %-10s         sizeof(char*) = %ld",        strStr,         sizeof(strStr));
        NSLog(@"byteBool = %-10d       sizeof(BOOL) = %ld",         byteBool,       sizeof(byteBool));
    }
    return 0;
}

